#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QCursor cursor = Qt::WaitCursor;
    QPushButton * button = new QPushButton(this);
    button->setCursor(cursor);

    //
    QPixmap image(":/R-C.jpg");
    //pixmap进行缩放，返回一个副本
    image = image.scaled(100,70);
    QCursor cursor_(image,10,10);
    this->setCursor(cursor_);
}

Widget::~Widget()
{
    delete ui;
}

